home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 6: Level 6 / 17 Bit - Level 6 (1998)(Epic Marketing)[!].iso / quartz / q0833.dms / q0833.adf / FlowChartMacros / FlowChartTool_Circle.arexx < prev    next >
Text File  |  1997-04-10  |  3KB  |  115 lines

  1. /* FlowChartTool_Circle*/
  2. /* A SuperMacro by Steven. R. Giovenella, 5823 Dutchess Dr., Colorado Springs, CO 
  3. 80918.  © Copyright 1994 Steven. R. Giovenella, All rights reserved. 
  4. This macro is my gift to the Amiga community.  It may be given away freely to 
  5. anyone, but it may NOT be sold in any way, shape, or form, not even for the cost of 
  6. reproduction, shipping, or handling, without express written permission from the 
  7. author.  This macro may NOT be added to any disk which is to be sold for any price 
  8. or fee, to include shipping and handling.  The ONLY way this macro may be 
  9. distributed is on a disk which is given away 100% free of all charges, or via 
  10. telecommunications networks which do not charge any additional fee as a result of a 
  11. user downloading this particular macro, although general fees for access to the 
  12. telecommunications system as a whole are acceptable.  This macro may only 
  13. bereproduced in its entirety, including all comment lines and code.  The individual 
  14. user may alter this macro for personal use, but may not then distribute the macro 
  15. in any modified form.  If you wish, feel free to send me some money, a Christmas 
  16. card, some other piece of software, or absolutely nothing as a gift for creating this 
  17. macro.  The author of this software is not responsible for any data loss or damage to 
  18. computer equipment as a result, direct or indirect, of the use of this macro. */
  19.  
  20. Options results
  21.  
  22. /* Set maxwidth of box margins */
  23. SectionSetup TOP 1 BOTTOM 1 INSIDE 2.25 OUTSIDE 2.25 COLUMNS 4
  24. Justify CENTER
  25. Hypen  ON
  26. Hotzone .05
  27.  
  28. /* Find Range to Use */
  29. Status LinePos
  30.     PARSE VAR Result BegLine BegPos EndLine EndPos
  31.  
  32. maxwidth=0
  33. cumheight=0
  34. range=EndLine-BegLine+1
  35.  
  36. DO i=1 to range
  37.     linenum=BegLine+i-1
  38.     MoveToLine linenum 0
  39.     Status LineHeight
  40.         lh=Result
  41.     Status Fontname
  42.         fname=Result
  43.     Status FontSize
  44.         fsize=Result
  45.     TextBlockTypePrefs SIZE fsize FONT fname
  46.     ShiftDOWN
  47.     CtrlDOWN
  48.     Cursor DOWN
  49.     Extract
  50.         textline=Result
  51.     ShiftUP
  52.     CtrlUP
  53.     yspot=.25+cumheight
  54.     xspot=1.75
  55.     DrawTextBlock 1 xspot yspot textline
  56.     CurrentObject
  57.         obj.i=Result
  58.     cumheight=cumheight+lh    *.85
  59.     IF i=1 THEN DO
  60.         FirstObject SELECTED
  61.             firstobj=Result
  62.         END
  63.     END
  64.  
  65.  
  66.  
  67. newcumheight=0
  68. DO i=1 to range
  69.     GetObjectCoords obj.i
  70.         PARSE VAR Result page left top width height
  71.     newxpos=4.25-.5*width
  72.     newypos=(.75-.5*cumheight)+newcumheight
  73.     newcumheight=height+newcumheight
  74.     SetObjectCoords obj.i page newxpos newypos width height
  75.     maxwidth=MAX(width,maxwidth)
  76.     END
  77. SelectObject
  78.  
  79. /* Draw box around text */
  80. OvalPrefs LINEWT 2 FILL solid TEXTFLOW none FILLCOLOR white
  81. DrawOval page (4.25-.375) (.75-.375)  .75 .75
  82. ObjectToBack
  83. i=i+1
  84. CurrentObject
  85.     obj.i=Result
  86. OvalPrefs LINEWT 2 FILL solid TEXTFLOW none FILLCOLOR black
  87. DrawOval page (4.3125-.375) (.8125-.375)  .75 .75
  88. ObjectToBack
  89. i=i+1
  90. CurrentObject
  91.     obj.i=Result
  92. OvalPrefs LINEWT 2 FILL solid TEXTFLOW none FILLCOLOR white
  93. GraphicTool
  94. DO i=1 to (range+3)
  95.     SelectObject obj.i MULTIPLE
  96.     END
  97. Group
  98. Cut
  99. TextTool
  100.  
  101. /* Paste into FlowChart section */
  102. /* Goto FlowChart section or create one */
  103. SectionSetup NEWNAME "Main"
  104. GotoSection "FlowChart"
  105. GetSectionSetup NAME 
  106. IF Result~="FlowChart" THEN DO
  107.     NewSection Text Name "FlowChart" AFTER
  108.     GotoSection "FlowChart"
  109.     END
  110.  
  111. Paste
  112. GraphicTool
  113. redraw
  114. ObjectToFront
  115.